package cn.yunhe.services;

import cn.yunhe.dao.FoodXiangQing;
import cn.yunhe.entity.merchantsentity.Food;
import cn.yunhe.util.SqlSessionFactoryUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.ArrayList;
import java.util.List;

public class FoodXiangQingService {
    SqlSession sqlSession = SqlSessionFactoryUtil.getSqlSession();
    FoodXiangQing foodXiangQing = sqlSession.getMapper(FoodXiangQing.class);

    public List<Food> getId(int fid){
        List<Food>  foodList = foodXiangQing.getId(fid);
          return foodList;
    }

}
